import eslintPlugin from 'vite-plugin-eslint'

export default function createEslint() {
  return eslintPlugin({
    include: ['src/**/*.js', 'src/**/*.vue', 'src/*.js', 'src/*.vue'],
    exclude: ['node_modules/**', 'dist/**'],
    cache: true
  })
}
